Vue.component('my-earth', MyEarth);
window.$app = new Vue({
  el: '#app',
  data: {
    points: [
      {
        startArray: { name: '北京', N: 39.89491, E: 116.322056 },
        endArray: [ {name: '东京', N: 35.41, E: 139.44} ]
      },
      {
        startArray: { name: '东京', N: 35.41, E: 139.44 },
        endArray: [ {name: '伦敦', N: 51.30, E: 0} ]
      }
    ]
  },
  created(){

  },
  mounted(){
    
  },
  methods: {
    test(){
      console.log(this.$refs.earthRef)
      this.$refs.earthRef.earth.isRotation = !this.$refs.earthRef.earth.isRotation;
    }
  }
});
